import utime as time
from usr.aht20 import Aht20


def main():
    aht20_obj = Aht20()
    while True:
        humidity, temperature = aht20_obj.trigger_measure()
        print('humidity: %.2f%%, temperature: %.2f°C' % (humidity, temperature))
        time.sleep(1)


if __name__ == '__main__':
    main()
